package com.haiheng.module_main.bean

/**
 *
 * @Des:
 * @Author: hwz
 * @Date:2025/9/4 0004
 * @Version: 1.0
 */
enum class BookDeliveryOrderStatus(val code: Int) {
    PENDING(0),
    PREPARING(1),
    COMPLETED(2),
    CANCELLED(3),
    DELIVERING(10),
    AWAITING_PICKUP(11),
    PICKUP_EXPIRED(12);

    companion object {
        fun fromCode(code: Int): BookDeliveryOrderStatus? {
            return values().find { it.code == code }
        }
    }
}